#include <stdio.h>
#include <stdlib.h>
#include "mbedtls/base64.h"
#include "mbedtls/token.h"




int main()
{
    onenet_msg_t msg = {0};
    sprintf(msg.produt_id,"%d",238322);
    sprintf(msg.key,"%s","EnW4T71eIE55xOIQMN6pFMKuqel5T5HTzsGJRPiDhlM=");
    sprintf(msg.device_name,"%s","mqtts-test-device");
    char token[512] = {0};
    onenet_creat_token_init(&msg, 7557387130,ONENET_METHOD_SHA1,token,sizeof(token));
    printf("TOKEN:%s\e\n",token);
   // int ret = mbedtls_base64_self_test(0);
    printf("Hello world:%d!\n",sizeof(long long));
    return 0;
}
